<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/viewOrders.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.sales.LineItem,
                 java.util.ArrayList,
                 com.scalar.chiptrack.commons.Constants"%>
<%@ page import="com.scalar.chiptrack.users.Functionality"%>
<%@ page import="com.scalar.chiptrack.users.User"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js">
</script>
<SCRIPT language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script  language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/quickSearch.js"></script>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!--Added by rohan on August 20th 2003
This additions have been made to give the functionality of success.jsp to this page aswell-->
<%

    String action=request.getParameter("action");
    if(action == null )
    {
        action = "";
    }else{
        action = action.trim();
    }
    try {
  %>
<!--End of additions by rohan on August 20th 2003-->

<SCRIPT language="JavaScript">
    window.onload = init;
    function init()
    {
        qs_1 = new QuickSearch(document.ordersForm['salesOrderId'], document.ordersForm.qs1, false);
        qs_2 = new QuickSearch(document.ordersForm['customerPO'], document.ordersForm.qs2, false);
        qs_3 = new QuickSearch(document.ordersForm['manufacturingPartNo'], document.ordersForm.qs3, false);
        qs_4 = new QuickSearch(document.ordersForm['customerId'], document.ordersForm.qs4, false);
    }
    function searchOrderList(theForm)
    {
        if(!isInteger(theForm.year.value)) {
            errors = "<li> Please enter a valid integer";
            var pa=document.getElementById("errors1");
            pa.innerHTML = errors;
            theForm.year.select();
            return false;
        }
        <%--theForm.salesOrderId.value = trim(theForm.salesOrderId.value);
        theForm.customerPO.value = trim(theForm.customerPO.value);--%>
        theForm.action.value = "SearchOrder";
        //theForm.submit();
        return true;
    }

    function GetAllProducts()
    {
        newWindow = window.open('loadProducts.do','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=500,height=600,top=30,left=300,resizable=no');
  	//newWindow.moveTo(300,30);
  	newWindow.focus();
    }

    function assignProduct(passedValue)
    {
	document.ordersForm.manufacturingPartNo.value = passedValue;
	window.focus();
    }

    var dateElement = "";
    function openCalendar(dateValue)
    {
	dateElement = dateValue;
  	newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
  	newWindow.moveTo(550,180);
  	newWindow.focus();
    }

    function assignDate(passedValue)
    {
	dateElement.value=passedValue;
	window.focus();
    }

    // SharatH on July 31, 2003
    function showErrorReportPage()
    {
        newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
        newWindow.focus();
    }
    //Added by rohan on August 20th 2003
    //These javascript functions have been added so that this page can be called instead of success.jsp

    function openCustomer()
    {
	    newWindow = window.open('customers.do?action=PrintCustomer&customerId=<%=(String)request.getAttribute("customerId")%>','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
  	    //newWindow.moveTo(100,50);
  	    newWindow.focus();
    }
        <!-- Added by Sarada to set some value to  revisedDate -->
    <%
    if( "ApproveMissedOrder".equalsIgnoreCase(action) == true ) {
    %>
    function openSalesOrder()
    {
        //newWindow =
		window.open('order.do?action=printOrder&revisedDate=true&salesOrderId=<%=(String)request.getAttribute("salesOrderId")%>&salesOrderNo=<%=(String)request.getParameter("salesOrderNo")%>','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
  	    //newWindow.moveTo(100,50);`
  	  //  newWindow.focus();
    }

    <% } else  { %>

    function openSalesOrder()
    {
        var isSample = document.ordersForm.isSample.value;
       // newWindow =
		window.open('order.do?action=printOrder&revisedDate=false&salesOrderId=<%=(String)request.getAttribute("salesOrderId")%>&isSample='+isSample,'optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
  	    //newWindow.moveTo(100,50);
  	   // newWindow.focus();
    }
    <% } %>

function reset()
{
    document.ordersForm.reset();
    qs_1.resetQuickSearchCntrl();
    qs_2.resetQuickSearchCntrl();
    qs_3.resetQuickSearchCntrl();
    qs_4.resetQuickSearchCntrl();
}

</SCRIPT>


<!-- Top Header Start-->

    <%
        String userTypeChiptrac = Constants.USER_TYPE_CHIPTRAC + "";
    %>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%
 String heading = "";
 String isSample = "1";
%>
<% if((request.getParameter("isSample") != null) && (request.getParameter("isSample").equals("0"))) {
         heading = "Sample Orders"; isSample="0";
%>
	    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sample_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sample_order_menu.jsp" %>
        </logic:notEqual>
<% } else {
     heading = "Sales Orders";isSample="1";
%>
        <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/sales_order_menu.jsp" %>
        </logic:equal>
        <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
            <%@ include file="/jsp/sales/ext_sales_order_menu.jsp" %>
        </logic:notEqual>
<% } %>


<!-- end of the side navigations -->
</TD>

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>

<!-- from here your body starts -->
<center><span class="NArialW">View <%=heading%></span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<!--Added by rohan on August 20th 2003 -->
<!-- Added the tags of success.jsp -->
<br>
<div align=right>
<table border="0" width="90%">
 <tr><td>
    <chiptrack:info styleClass="NArialL" />
    <chiptrack:errors styleClass="NArialL" />
    <%--<chiptrack:messages type="info" styleClass="NArialL" />--%>

 </td></tr>
</table>
</div>
<!-- End of additions by rohan on August 20th 2003 -->

<html:form name="ordersForm" onsubmit="return searchOrderList(document.ordersForm);" method="post" action="/viewOrders" type="com.scalar.chiptrack.sales.forms.OrdersForm">
 <table border="1" width="100%" align=right>

 <tr><td>
 <table border="1" width="90%" align=center>
    <tr><td colspan='5' align="left" class='NArialL'><FONT id="errors1" color='FF0000'></FONT></TD></TR>
    <tr><td colspan='5' align="left" class='NArialL'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></TD></TR>
    <tr>
      <td width="25%" class="NArialL">Quick Search:</td>
      <td width="15%">
        <input type="text" name="qs3" class="txfield" size='33' onkeyup='quickSearch(qs_3);'/>
      </td>
      <td width="10%">&nbsp;</td>
      <td width="15%"><font class="NArialL">Quick Search:</font></td>
      <td width="15%">
            <input type="text" name="qs4" class="txfield" size='33' onkeyup='quickSearch(qs_4);'/>
      </td>
    </tr> 
    <tr>
      <td width="25%">
    	<!-- Modified by veeru on (03/05/04)
	  <font class="NArialL">Product Name<br>(Mfg Part Number)</font>-->
	  <font class="NArialL">Product Name<br>(<bean:message key="label.mfgPartNumber" />)</font>

	  </td>
      <td width="15%"><font class="NArialL" colspan=4>
           <html:select name="ordersForm" property="manufacturingPartNo" styleClass="txfield">
                <html:options collection="productList" property="value" labelProperty="label"/>
           </html:select></font>
      </td>
      <td width="10%">&nbsp;</td>
      <td width="20%"><font class="NArialL">Customer</font></td>
      <td width="15%"><font class="NArialL">
        <html:select name="ordersForm" property="customerId" styleClass="txfield">
            <html:options collection="customerList" property="value" labelProperty="label"/>
        </html:select></font>
      </td>

      <td width="10%">&nbsp;</td>
    </tr>
     <tr>
      <td width="25%"><font class="NArialL">Quick Search:</font></td>
      <td width="15%">
        <input type="text" name="qs1" class="txfield" size='20' onkeyup='quickSearch(qs_1);'/>
      </td>
      <td width="10%">&nbsp;</td>
      <td width="15%"><font class="NArialL">Quick Search:</font></td>
      <td width="15%">
            <input type="text" name="qs2" class="txfield" size='20' onkeyup='quickSearch(qs_2);'/>
      </td>
    </tr>
    <tr>
      <td width="25%"><font class="NArialL">Sales Order #</font></td>
      <td width="15%"><font class="NArialL">
          <html:select name="ordersForm" property="salesOrderId" styleClass="txfield">
            <html:options collection="salesOrdersList" property="value" labelProperty="label"/>
        </html:select>
      <%--<html:text name="ordersForm" property="salesOrderId" size="20" styleClass="txfield" />--%></font></td>
      <td width="10%">&nbsp;</td>
     <!-- Added by Gandhi on Nov 18th, 2004 -->
      <td width="20%"><font class="NArialL">Customer PO #</font></td>
      <td width="15%"><font class="NArialL">
        <html:select name="ordersForm" property="customerPO" styleClass="txfield">
                <html:options collection="posList" property="value" labelProperty="label"/>
        </html:select>
       <%--<html:text name="ordersForm" property="customerPO" size="20" styleClass="txfield" />--%></font>
      </td>
     <!-- Ends here -->
    </tr>
    <tr>
              <td width="25%"><font class="NArialL"><bean:message key="label.sales.endCustomer"/></font></td>
              <td width="15%"><font class="NArialL">
            <html:select name="ordersForm" property="endCustomer" styleClass="txfield">
                <html:option value="0">All <bean:message key="label.sales.endCustomer"/>s</html:option>
                <html:options collection="endCustomerList" property="value" labelProperty="label"/>
            </html:select></font></td>
              <td width="10%">&nbsp;</td>
            <td width="20%"><font class="NArialL"><bean:message key="label.sales.endUser"/></font></td>
          <td width="15%"><font class="NArialL">
            <html:select name="ordersForm" property="endUser" styleClass="txfield">
              <html:option value="0">All <bean:message key="label.sales.endUser"/>s</html:option>
                    <html:options collection="endUserList" property="value" labelProperty="label"/>
            </html:select>
             </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
          <td><font class="NArialL">Year</font></td>
          <td><font class="NArialL">
            <%-- <html:text name="ordersForm" property="year" size="5" maxlength="4" styleClass="txfield" /> --%>
            <html:select name="ordersForm" property="year" styleClass="txfield">
                <html:option value="">--All--</html:option>
                <html:options collection="years" property="value" labelProperty="label" />
            </html:select></font>
          </td>
          <td width="10%">&nbsp;</td>
          <td><font class="NArialL">Status</font></td>
          <td><font class="NArialL">
            <html:select name="ordersForm" property="status" styleClass="txfield">
                    <html:option value="All">All</html:option>
                    <html:option value="BACKLOG"> BACKLOG </html:option>
                    <html:option value="HOLD"> HOLD </html:option>
                    <html:option value="SHIPPED"> SHIPPED </html:option>
                    <html:option value="CANCELLED"> CANCELLED </html:option>
                </html:select></font>
          </td>
    </tr>
    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>

    <tr>
      <td colspan=5 align=center>
         <%-- <a href="javascript:searchOrderList(document.ordersForm);"onmouseover="window.status='Click to Search for Sales Orders List';return true" onmouseout="window.status='';return true" title="CLick here to Search for Sales Orders List"><input type=image border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17"></a> --%>
            <%--Modified by varma 2 aug 2004 --%>
            <input type=image border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17" onmouseover="window.status='Click to Search for Sales Orders List';return true" onmouseout="window.status='';return true" title="CLick here to Search for Sales Orders List"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <a href="javascript:reset();"onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="CLick here to Reset"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17"></a></td>
    </tr>
   </table>
   </td></tr>
   <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
   <tr><td>
   <logic:equal name="showList" value="TRUE">
   <table border="0" width="100%" bordercolor="#FFFFFF" align=right>
        <tr>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Sales Order #</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="3%" align="center"><font color="#FFFFFF">Customer PO #</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Customer </font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF"><bean:message key="label.sales.endCustomer"/></font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF"><bean:message key="label.sales.endUser"/></font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="3%" align="center"><font color="#FFFFFF">LineItem #</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="18%" align="center">
                <font color="#FFFFFF"><bean:message key="label.mktgPartNumber" /></font>
			</td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="18%" align="center"><font color="#FFFFFF">
				<bean:message key="label.customerPartNumber"/></font>
			</td>
            <td bgcolor='#993333' class="NArialL" colspan=4 align="center" width="10%"><font color="#FFFFFF">Holds</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Booking Date</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Req Dock Date</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">ScheduleDate</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Revised Ship Date</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="5%" align="center"><font color="#FFFFFF">Req Qty</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Shipped Qty</font></td>
            <td bgcolor='#993333' class="NArialL" rowspan=2 width="10%" align="center"><font color="#FFFFFF">Status</font></td>
        </tr>
        <tr>
            <td bgcolor='#993333' class="NArialL"><font color="#FFFFFF" align="center">Sales</font></td>
            <td bgcolor='#993333' class="NArialL"><font color="#FFFFFF" align="center">Mktg</font></td>
            <td bgcolor='#993333' class="NArialL"><font color="#FFFFFF" align="center">Ops</font></td>
            <td bgcolor='#993333' class="NArialL"><font color="#FFFFFF" align="center">Fin</font></td>
        </tr>

        <% int bgcount = 0; String bgcolor = "#DEE1E2"; %>

        <% ArrayList productsList = (ArrayList)request.getAttribute ( "viewList" ); %>
        <%--<tr><td colspan=5>&nbsp;</td></tr>--%>
	    <logic:iterate id="LineItem" name="viewList" type="com.scalar.chiptrack.sales.LineItem">
        <!--Bhaskar added this part of scriptlet to get the sales order id values-->
        <%
           LineItem lineItems = (LineItem) productsList.get (bgcount);
           int salesOrderIdd = lineItems.getSalesOrderId();
           String salesOrderNoo = lineItems.getSalesOrderNo();
           salesOrderNoo.trim();
           bgcount = bgcount + 1;
           if(bgcount%2==0)
                bgcolor="#DEE1E2";
           else
                bgcolor="#FFFFEE";
        %>
	<tr>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center">
                <%--A HREF="<%=chipTracContext%>/order.do?salesOrderId=<bean:write name="LineItem" property="salesOrderId"/>&isSample=<%=isSample%>">
                    <bean:write name="LineItem" property="salesOrderNo"/></A --%>
            <% if( ( isSample != null && isSample.equals( "0" ) ) ) { %>
                <chiptrack:restrictedLink functionality='<%=Functionality.SAMPLE_VIEW_ORDER%>' action='<%=User.USER_ACTION_VIEW%>' styleClass="leftsection" href='<%=chipTracContext + "/order.do?salesOrderId=" + salesOrderIdd + "&isSample=" + isSample%>' onmouseover="window.status='Click to View sales order';return true" onmouseout="window.status='';return true"><%=salesOrderNoo%></chiptrack:restrictedLink>
            <% } else { %>
                <chiptrack:restrictedLink functionality='<%=Functionality.SALES_VIEW_ORDER%>' action='<%=User.USER_ACTION_VIEW%>' styleClass="leftsection" href='<%=chipTracContext + "/order.do?salesOrderId=" + salesOrderIdd + "&isSample=" + isSample%>' onmouseover="window.status='Click to View sales order';return true" onmouseout="window.status='';return true"><%=salesOrderNoo%></chiptrack:restrictedLink>
            <% } %>
            </td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="customerPO"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="customerName"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="endCustomer"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="endUser"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="lineItemNo"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="marketingPartNo"/></td>
            <%--<td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="manufacturingPartNo"/></td>--%>
            <td bgcolor='<%=bgcolor%>' class="NArialL"><bean:write name="LineItem" property="customerPartNo"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="salesHold"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="marketingHold"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="operationsHold"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="financeHold"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="bookingDate"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="requestDate"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="scheduleDate"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="revisedDate"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="right"><bean:write name="LineItem" property="qtyAsString"/></td>

            <%--<td bgcolor='<%=bgcolor%>' class="NArialL" align="right">
            <logic:equal name="LineItem" property="status" value="CANCELLED">
            0
            </logic:equal>
            <logic:notEqual name="LineItem" property="status" value="CANCELLED">
            <bean:write name="LineItem" property="shippedQtyAsString"/>
            </logic:notEqual>
            </td> --%>
            <%--<td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="shipmentNo"/></td>--%>
            <%--<td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="orderType"/></td>--%>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="shippedQtyAsString"/></td>
            <td bgcolor='<%=bgcolor%>' class="NArialL" align="center"><bean:write name="LineItem" property="status"/></td>
	</tr>
        </logic:iterate>
    </table>
    </logic:equal>
    </td></tr>
</table>

<input type="hidden" name="action" value="">
<input type="hidden" name="isSample" value="<%=request.getParameter("isSample")%>">
</html:form>


<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</html>
<%
    }
    catch (Exception e)
    {
        e.printStackTrace();
    }
%>